home *** CD-ROM | disk | FTP | other *** search
- <#>
- <#> This sample insert current date to name of the selected file
- <#>
- <#>
- <cmds>
-
- <proc_def_begin>(GetDateString, "&parDateString&")
- <varset>("parDateString=-%_vCurrDate_Year%-%_vCurrDate_MM%-%_vCurrDate_DD%","")
- <proc_def_end>
-
- <proc_def_begin>(InsertDateToFileName, "&parFileName&")
- <proc_call>(GetDateString,"lpvDateString")
- <var_oper>(vbLnt,"%parFileName%",STR_LENGTH,"","", "0")
- <begloop>(vbLnt)
- <var_oper>(vbInx,"%vbLnt%-%_vLoopCounter%",CALC_EXPRESSION,"0","", "0")
- <var_oper>(vbChar,"%parFileName%",STR_GET_CHAR,"vbInx","", "0")
- <if_str>("vbChar==.")
- <var_oper>(parFileName,"%parFileName%",STR_INSERT,"vbInx","%lpvDateString%", "0")
- <goto>("lbl_b_End")
- <endif>
- <endloop>
- <var_oper>(parFileName,"%parFileName%",STR_APPEND,"%lpvDateString%","", "0")
- <label>("lbl_b_End")
- <proc_def_end>
-
- <var_oper>(vFile,"",SELECT_FILE," ","", "0")
- <if_str>("_vCanceled == 1") <exitmacro> <endif>
- <proc_call>(InsertDateToFileName,"vFile")
- <msg>(-100,-100,"vFile","Message",1)
-